//
//  GCAlertViewTemplate.h
//  GCAlertViewDemo
//
//  Created by 贺晓阳 on 2020/11/14.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class GCAlertViewFeathers;

NS_ASSUME_NONNULL_BEGIN

@interface GCAlertViewTemplate : NSObject

@property (nonatomic, strong) UIView *alertView;


/// 构建alertView
/// @param feathers 样式细节
- (void)buildGCAlertView:(GCAlertViewFeathers *)feathers;

/// 根据属性构建alertView按钮
/// @param buttonTitle 按钮文字
/// @param color 颜色
/// @param font 字体
/// @param clickBlock 触发点击后，执行的回调
- (void)addAction:(NSString *)buttonTitle color:(UIColor *)color font:(UIFont *)font click:(void (^)(void))clickBlock;

/// 展示弹框
- (void)show;

/// 弹框消失
- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
